import 'package:elephant_fish/model/person_contribute_entity.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

class PersonContribute extends StatefulWidget {
  final PersonContributeEntity personContributeEntity;

  const PersonContribute({Key key, this.personContributeEntity})
      : super(key: key);

  @override
  _PersonContributeState createState() => _PersonContributeState();
}

class _PersonContributeState extends State<PersonContribute> {
  @override
  Widget build(BuildContext context) {
    return Padding(
      padding: EdgeInsets.all(10),
      child: Column(
        children: [
          CircleAvatar(
            radius: 25,
            backgroundImage: NetworkImage('http://119.28.131.94:82' + widget.personContributeEntity.avatar),
          ),
          SizedBox(
            height: 10,
          ),
          Text(
            widget.personContributeEntity.nickname,
            style: TextStyle(color: Color(0xfff3f3f3)),
          ),
        ],
      ),
    );
  }
}
